<div class="menu_foto cl">
  <ul class="category">
    <li><a href="javascript:void(0)" ref="all" class="current">全部</a></li>
    <?php $i=0; foreach($cats as $catid => $cat_name): if($i > 16) break; ?>
    <li><a href="javascript:void(0)" ref="<?=$i;?>"><?=h($cat_name); ?></a></li>
    <?php $i++; endforeach; ?>
  </ul>
  <div class="clear"></div>
  <?php foreach($cats as $catid => $cat_name): ?>
  <div class="menu">
    <h1><?=h($cat_name); ?></h1>
    <ul class="grid" id="menu_list">
    <?php foreach($dishes[$catid] as $dish): ?>
    <li><a href="javascript:addCart(<?=$dish['dish_id'];?>)"><img src="<? if(!empty($dish['picture'])){echo UPLOAD_URL.$dish['picture'];}else{echo STATIC_URL.'img/shop/nopic.jpg';}?>" alt="<?=h($dish['name']);?>" border="0" />
        <h3 class="rem-icon"><?=h($dish['name']);?></h3>
        <span>￥<?=$dish['price'];?></span></a> </li>
    <? endforeach; ?>
    </ul>
    <div class="clear"></div>
  </div>
  <?php endforeach; ?>
  <div class="clear"></div>
</div>
